package pri.damai.xiaowu.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import pri.damai.xiaowu.common.security.model.AuthRole;

import java.util.List;

/**
 * 登录成功结果类
 * @Desc
 * @Author DaMai
 * @Date 2021/10/15 14:22
 * 但行好事，莫问前程。
 */
@Data
@Schema
@Accessors(chain = true)
public class LoginSuccessVO {

    @Schema(description = "token")
    private String token;

    @Schema(description = "用户Id")
    private String userId;

    @Schema(description = "用户姓名")
    private String username;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "头像")
    private String avatarUrl;

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "机构Id")
    private String orgId;

    @Schema(description = "机构名称")
    private String orgName;

    @Schema(description = "角色名称列表")
    private List<AuthRole> roleNames;

    @Schema(description = "注册时间")
    private String registerDate;
}
